import { Rect } from "cc";

export interface BasePlatform {
    nativeCode?: string;
    /**初始化 必须判断callback是否存在 然后调用返回*/
    initSdk(args?: any, callback?: Function);
    /**登录 必须判断callback是否存在 然后调用返回*/
    login?(args?: any, callback?: Function)
    /**支付 必须判断callback是否存在 然后调用返回*/
    pay?(args?: any, callback?: Function)
    /**分享 必须判断callback是否存在 然后调用返回*/
    share(args?: any, callback?: Function)
    /**显示banner 必须判断callback是否存在 然后调用返回*/
    showBanner(args?: any, callback?: Function)
    /**关闭banner 必须判断callback是否存在 然后调用返回*/
    hideBanner(args?: any, callback?: Function)
    /**显示插屏 必须判断callback是否存在 然后调用返回*/
    showInsertAd(args?: any, callback?: Function)
    /**播放视频广告 必须判断callback是否存在 然后调用返回*/
    showVideoAd(args?: any, callback?: Function, error?: Function, stub?: string)
    /**其他方法 必须判断callback是否存在 然后调用返回*/
    otherFun(args?: any, callback?: Function)
    /**震动 必须判断callback是否存在 然后调用返回*/
    shark(args?: any, callback?: Function)
    recordVideo?(args?: any, callback?: Function);
    shareVideo?(args?: any, callback?: Function);
    stopRecorderManager?(args?: any, callback?: Function);
    setLanguage?(args?: any, callback?: Function): string;
    youmengTrack(key?: any, abName?: any, groupValue?: any, id?: string)
    hasVerify(): boolean
    getCode?(callback?: Function): string;
    canShare?(): boolean;
    pauseRecord?()
    resumeRecord?()
    verifyKey?(str: string)
    toAppStore?(callback?: Function)
    openNotify?();
    shareImg?(args?: any, callback?: Function);
    //添加收藏
    addCollect?(callback?: Function);
    //添加桌面
    addDesktop?(callback?: Function);
    //检测是否支持侧边栏
    checkSideBar?(callback?: Function);
    //前台监听
    receptionListen?(callback?: Function);
    //侧边栏
    jumpSidebar?(callback?: Function);
    //上报数据
    reportEvent?(eventId: string, data?: Object);
    /**游戏圈 */
    createGameClubButton?(rect: Rect, callback?: Function)
}

/**渠道平台 */
export enum Platform {
    EDITOR = "editor",
    /**快看渠道 */
    KUAIKAN = "h5_kuaikan",
    /**微信渠道 */
    WECHAT = "h5_wechat",
    /**抖音渠道 */
    BYTEDANCE = "h5_bytedance",
    /**VIVO渠道 */
    VIVO = "h5_vivo",
    /**百度渠道 */
    BAIDU = "h5_baidu",
    /**OPPO渠道 */
    OPPO = "h5_oppo",
    /**QQ渠道 */
    QQ = "h5_qq",
    /**233渠道 */
    ANDROID_233 = "android_233",
    /**233渠道 */
    ANDROID_XIAOMI = "android_xiaomi",
    /**VIVO APK渠道 */
    ANDROID_VIVO = "android_vivo",
    /**OPPO APK渠道 */
    ANDROID_OPPO = "android_oppo",
    /**oyahoo渠道 */
    ANDROID_oyahoo = "android_ohayoo",
    /**摸摸鱼渠道 */
    ANDROID_MMY = "android_mmy",
    /**4399 APK渠道 */
    ANDROID_4399 = "android_4399",
    /**抖音APK渠道 */
    ANDROID_DOUYIN = "android_bytedance",
    /**谷歌渠道 */
    GOOGLE = "Google",
    /**IOS渠道 */
    Ios = "ios",
    /**快手渠道 */
    KuaiShou = "kuaishou",
    /**华为快应用渠道 */
    HUAWEI_QUICK = "huawei",
    //外链版本
    WEB_LINK = 'weblink'
}
